package com.pxst.merchant.req;

import com.pxst.req.BasePageRsp;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
public class MerchantDailyReportReq extends BasePageRsp {

    @NotBlank(message = "地区不能为空")
    @ApiModelProperty(value = "地区" ,required = true)
    private String currency;

    @ApiModelProperty(value = "所属总代id")
    private Long belongId;

    @ApiModelProperty(value = "代理id")
    private List<Long> agentId;

    @ApiModelProperty(value = "商户id")
    private List<Long> merchantId;

    @ApiModelProperty(value = "开始时间" ,required = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @NotNull(message = "开始时间不能为空")
    private Date startDate;

    @ApiModelProperty(value = "结束时间" ,required = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @NotNull(message = "结束时间不能为空")
    private Date endDate;
}
